package com.cubicleman.airvj.model.vo.MTV
{
	public class VideoVO extends Response
	{
		public function VideoVO()
		{
			author = new Author();
			thumbNails = new Array();
		}

		public var author:Author;
		
		/**
		 * media:content@url
		 */
		public var swfURL:String;
		
		/**
		 * media:content@duration  in secs
		 */
		 
		 
		public var duration:int = 0;
		/**
		 * this is the full MTV page for the video with the MTV player embedded
		 */
		public var playerURL:String;
		
		
		public var published:Date;
		
		public var title:String = '';
		
		/**
		 * pipe delimed data artist | title | label 
		 */
		public var content:String;
		
		
		/**
		 * array of images...URLs only
		 */
		public var thumbNails:Array;
		
		
		/**
		 * returns a specific thumbnail defined here
		 * just a helper funtion really.
		 */
		public function get thumbnail():ThumbNail
		{
			//s/b last one, but api is wrong ATM thumbNails.length-1
			return thumbNails.length > 0 ? thumbNails[0] as ThumbNail : new ThumbNail();
		}
	}
}